<!-- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> -->
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:rich="http://richfaces.org/rich">
      <f:loadBundle basename="oo.messages" var="msgs"/>
  <body>
    <a4j:jsFunction name="ajaxSubmit" oncomplete="#{rich:component('panel1')}.show()" reRender="panel1" />
    <rich:modalPanel id="panel1" width="350" height="100" showWhenRendered="#{mp.wynik}">
        <f:facet name="header">
            <h:panelGroup>
                <h:outputText value="#{mp.naglowek}"></h:outputText>
            </h:panelGroup>
        </f:facet>
        <f:facet name="controls">
            <h:panelGroup>
            	<h:commandButton id="hidelink1" value="X"/>
                <rich:componentControl for="panel1" attachTo="hidelink1" operation="hide" event="onclick"/>
            </h:panelGroup>
        </f:facet>
        <h:outputText value="#{mp.tresc}"></h:outputText>
    </rich:modalPanel>
     </body>
</html>

